export function orderStatus (status) {
    //    订单状态，0：订单取消，10:已下单未支付，20:待发货（用户已确认），23待发货（商家已确认），
    //    26已发货（未送达未确认），28已发货（已送达未确认），30：已收货（待归还未到期），
    //    33：已收货（待归还已延期），40：已归还待确认，50：完成
    let name = '';
    switch (status) {
        case 0:
            name = '已取消';
            break;
        case 10:
            name = '待支付';
            break;
        case 20:
        case 23:
            name = '待发货';
            break;
        case 26:
        case 28:
            name = '待收货';
            break;
        case 30:
        case 33:
            name = '待归还';
            break;
        case 40:
            name = '已归还待确认';
            break;
        case 50:
            name = '完成';
            break;
        default:
            name = '';
            break;
    }
    return name;
}

export function fundsLogType (status) {
    //    订单状态，0：订单取消，10:已下单未支付，20:待发货（用户已确认），23待发货（商家已确认），
    //    26已发货（未送达未确认），28已发货（已送达未确认），30：已收货（待归还未到期），
    //    33：已收货（待归还已延期），40：已归还待确认，50：完成
    let name = '';
    let isPay = false
    switch (status) {
        case 1:
            name = '会员卡购买';
            isPay = true;
            break;
        case 2:
            name = '会员卡押金';
            isPay = true;
            break;
        case 3:
            name = '佣金';
            break;
        case 4:
            name = '押金扣除项';
            isPay = true;
            break;
        case 5:
            name = '押金提现';
            break;
        case 6:
            name = '佣金提现';
            break;
        default:
            name = '';
            break;
    }
    return {
        name: name,
        isPay: isPay
    };
}


export function className (name) {
    let className = '';
    switch (name) {
        case 'author':
            className = '名家大师';
            break;
        case 'award':
            className = '大奖作品';
            break;
        case 'roles':
            className = '图画角色';
            break;
        case  4:
        case '4':
            className = '少儿英语';
            break;
        case 'age':
            className = '分龄阅读';
            break;
        case 'theme':
            className = '主题系列';
            break;
        case 12:
        case '12':
            className = '游戏互动';
            break;
        case 5:
        case '5':
            className = '家长必读';
            break;
        default:
            className = '分类';
            break;
    }
    return className;
}


const cardData = [
    {
        label: '正品保障',
        icon: 'vip-rights-one1'
    },
    {
        label: '免费邮寄',
        icon: 'vip-rights-two1'
    },
    {
        label: '海量书籍',
        icon: 'vip-rights-three1'
    },
    {
        label: '百万玩具',
        icon: 'vip-rights-four1'
    }
];

const logisticsData = [
        {
            label: '待发货',
            icon: 'logistics-one1',
            orderStatus: '20'
        },
        {
            label: '待收货',
            icon: 'logistics-two2',
            orderStatus: '26'
        },
        {
            label: '待归还',
            icon: 'logistics-three3',
            orderStatus: '30'
        },
        {
            label: '已归还',
            icon: 'logistics-four4',
            orderStatus: '40'
        },
        {
            label: '全部订单',
            icon: 'logistics-five5',
            orderStatus: ''
        }
    ];
const systemSetting = [
        {
            label: '合伙人推广',
            icon: 'mine-parnter1',
            value: 'copartner'
        },
        {
            label: '心愿单',
            icon: 'mine-wish2',
            value: 'collection'
        },
        {
            label: '我的钱包',
            icon: 'mine-wallet3',
            value: 'wallet'
        },
        {
            label: '礼品卡',
            icon: 'mine-gift4',
            value: 'giftGard'
        },
        {
            label: '地址管理',
            icon: 'mine-address1',
            value: 'address'
        },
        {
            label: '帮助中心',
            icon: 'mine-help1',
            value: 'help'
        },
        {
            label: '设置',
            icon: 'mine-setting1',
            value: 'setting'
        }
    ];
const borrowingData = [
        {
            name: '剩余卡次',
            value: 'vipCardMemberBorrowFrequency'
        },
        {
            name: '剩余天数',
            value: 'vipCardMemberTime'
        },
        {
            name: '累计借阅',
            value: 'booksNum'
        },
        {
            name: '心愿单',
            value: 'keepNum'
        },
    ];

export {
    cardData,
    logisticsData,
    systemSetting,
    borrowingData
};